#include <iostream>
#include <vector>
#include <string>

std::vector<std::string> st(std::vector<std::string> b) {
    std::vector<std::string> s;
    for (const auto& i : b) {
        if (b.size() > 2) {
            if (i == "zero") {
                s.push_back("0");
            } else if (i == "one") {
                s.push_back("1");
            } else if (i == "two") {
                s.push_back("2");
            } else if (i == "three") {
                s.push_back("3");
            } else if (i == "four") {
                s.push_back("4");
            } else if (i == "five") {
                s.push_back("5");
            } else if (i == "six") {
                s.push_back("6");
            } else if (i == "seven") {
                s.push_back("7");
            } else if (i == "eight") {
                s.push_back("8");
            } else if (i == "nine") {
                s.push_back("9");
            } else {
                return {"Wrong input"};
            }
        } else {
            return {"Wrong input"};
        }
    }
    return s;
}

int main() {
    std::string input;
    std::getline(std::cin, input);
    std::vector<std::string> b;
    std::string word;
    std::istringstream iss(input);
    while (iss >> word) {
        b.push_back(word);
    }
    std::vector<std::string> result = st(b);
    for (const auto& item : result) {
        std::cout << item;
    }
    std::cout << std::endl;
    return 0;
}
